package com.ruoyi.system.mapper.distribution;

import com.ruoyi.system.domain.distribution.DistributionSubstations;

import java.util.List;

public interface DistributionSubstationsMapper {

    /**
     * 查询分站分销收益
     *
     * @param distriSubId 分站分销收益ID
     * @return 分站分销收益
     */
    public DistributionSubstations selectDistributionSubstationsById(Long distriSubId);

    /**
     * 查询分站分销收益列表
     *
     * @param distributionSubstations 分站分销收益
     * @return 分站分销收益集合
     */
    public List<DistributionSubstations> selectDistributionSubstationsList(DistributionSubstations distributionSubstations);

    /**
     * 新增分站分销收益
     *
     * @param distributionSubstations 分站分销收益
     * @return 结果
     */
    public int insertDistributionSubstations(DistributionSubstations distributionSubstations);

    /**
     * 修改分站分销收益
     *
     * @param distributionSubstations 分站分销收益
     * @return 结果
     */
    public int updateDistributionSubstations(DistributionSubstations distributionSubstations);

    /**
     * 删除分站分销收益
     *
     * @param distriSubId 分站分销收益ID
     * @return 结果
     */
    public int deleteDistributionSubstationsById(Long distriSubId);

    /**
     * 批量删除分站分销收益
     *
     * @param distriSubIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteDistributionSubstationsByIds(Long[] distriSubIds);

    int findAllSum(DistributionSubstations distributionSubstations);
    List<DistributionSubstations> findAllSumTwo(DistributionSubstations distributionSubstations);
}
